<template>
  <dir>
    <h3>新闻详细</h3>
    <h4>{{name}}</h4>
  </dir>
</template>

<script>
export default {
name:"NewsDetail",
mounted(){
    console.log(this);
},
computed:{
    name(){
        return this.$route.query.name
    }
}
}
</script>

<style>

</style>